package cn.wjx.taobaounion.utils;

import android.widget.Toast;

import cn.wjx.taobaounion.base.BaseApplication;

/**
 * @author WuChangJian
 * @date 2020/6/21 8:38
 */
public class ToastUtil {

    private static Toast sToast;

    public static void showToast(String tips) {
        if (sToast == null) {
            sToast = Toast.makeText(BaseApplication.getAppContext(), tips, Toast.LENGTH_SHORT);
        } else {
            sToast.setText(tips);
        }
        sToast.show();
    }

}
